FROM python:3.10-slim

WORKDIR /app

# Install dependencies required for Containernet.
RUN apt-get update && apt-get install -y \
    net-tools \
    iputils-ping \
    iproute2 \
    iperf3\
    curl\
    build-essential \
    htop


COPY requirements.txt .
RUN pip install -r requirements.txt

# 只复制必要的源代码文件
COPY task.py .
COPY protocol.py .
COPY compute_node_nf.py .
COPY start_node_nf.py .

# 创建配置目录
RUN mkdir -p /app/config
RUN mkdir -p /app/logs
ENTRYPOINT ["python", "start_node_nf.py"]
# 启动命令使用环境变量
# CMD ["python", "start_node_nf.py"]